package person.twj.securitysessionredis.controller;

import jakarta.servlet.http.HttpServletRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@Slf4j
public class AccessController {


    // 首页
    @GetMapping("/")
    public String home(HttpServletRequest request){

        return "/index";
    }
    // 没有登录提示页
    @RequestMapping("/notLogin")
    public String notLogin(HttpServletRequest request){

        return "/notLogin";
    }

}
